package juc.day01;

/**
 * @author wang hao
 * @date 2023-02-26 15:40
 */
public class Demo04 {
    public static void main(String[] args) {
        int a = -1 << 29;
        int b = 0;
        int c = 1 << 29;
        int d = 2 << 29;
        int e = 3 << 29;
        System.out.println(Integer.toBinaryString(a));
        System.out.println(Integer.toBinaryString(b));
        System.out.println(Integer.toBinaryString(c));

        System.out.println(Integer.toBinaryString(2));
        System.out.println(Integer.toBinaryString(d));

        System.out.println(Integer.toBinaryString(3));
        System.out.println(Integer.toBinaryString(e));


        System.out.println(Integer.toBinaryString((1 << 29) - 1));


        System.out.println(Integer.toBinaryString((1 << 29) - 1)); // 00011111111111111111111111111111
        System.out.println(Integer.toBinaryString(-536870912)); // 11100000000000000000000000000000
    }
}
